﻿/*---------------------------------------------------------------
 * Author : Tharinduni Udugamasuriya
 * Date : 30 October 2014
 * ITransactionReadService : Interface of TransactionReadService
 ---------------------------------------------------------------*/

using System.Data;

namespace DSPL.Contracts.Interfaces
{
    public interface ITransactionReadService
    {
        DataTable GetAllTransactionData(string tableName, string primaryKeyFieldName);

        DataTable GetParentTransactionData(string parentTableName, string primaryKeyField, object primaryKeyValue);

        DataTable GetChildTransactionData(string childTableName, string primaryKeyField, object primaryKeyValue);

        //DataTable GetAllTransactionDataTopRecords(string tableName, int numberOfRecPerPage);

        //DataTable GetDuplicates(string tableName, IColumnWithValue[] UniqueKeyList);

        //object CheckValidityOfDeletion(string tableName, int primaryKey,string primaryFieldName, string ingnoreTableList = "");

        //int GetPrimaryKeyValue(string tableName, string keyFieldName, string keyFieldValue,string primaryKeyFieldName);

        //string GetUniqueCodeValue(string tableName, string primaryKeyFieldName, string keyFieldValue, string KeyFieldName);

        //DataTable GetAllTransactionDataByHelpName(HelpNames helpName);        


        
    }
}
